#include <myheader_c_plus.h>
using std::endl;
using std::cout;
using std::list;
using std::deque;
using std::vector;
template <typename Container>
void display(Container & con){
    for(auto it = con.begin(); it != con.end(); ++it){
        cout << *it << " ";
    }
    cout << endl;

}
int main(int argc, char *argv[])
{
    list<int> li = {1,2,3,4,5,6,7,8,9,10};
    deque<int> odd;
    deque<int> even;
    for(auto it = li.begin(); it != li.end(); ++it){
        if(*it % 2 == 0){
            //偶数
            even.push_back(*it);
        }else{
            odd.push_back(*it);
        }
    }

    display(odd);
    display(even);
    return 0;
}

